package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

// 用户私聊相关统计
type StatPrivateChatLog struct {
	ID         int       `json:"id" gorm:"primaryKey;autoIncrement"`
	Date       time.Time `json:"date"`
	SourceKey  string    `json:"source_key"`
	UserCount  int       `json:"user_count"`
	ChatCount  int       `json:"chat_count"`
	CreateTime time.Time `json:"create_time"`
}

func (StatPrivateChatLog) TableName() string {
	return fmt.Sprintf("%sstat_private_chat_log", models.Prefix)
}
